home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / res / detect / piczo.xml < prev    next >
Extensible Markup Language  |  2007-10-12  |  4KB  |  140 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <service name="piczo"
  3.          version="$Id: piczo.xml 14659 2007-09-06 18:11:54Z mlise $"
  4.          xmlns="http://www.flock.com/web-detective#">
  5.  
  6.   <strings>
  7.     <string name="domains"><![CDATA[piczo.com]]></string>
  8.     <string name="sessioncookie"><![CDATA[JSESSIONID]]></string>
  9.     <string name="mainpage">
  10.       <![CDATA[http://www.piczo.com/]]>
  11.     </string>
  12.     <string name="favicon">
  13.       <![CDATA[http://www.piczo.com/favicon.ico]]>
  14.     </string>
  15.     <string name="userlogin">
  16.       <![CDATA[http://pic2.piczo.com/go/login]]>
  17.     </string>
  18.     <string name="userprofile">
  19.       <![CDATA[http://%accountid%.piczo.com/]]>
  20.     </string>
  21.     <string name="api-agent-string"><![CDATA[Flock]]></string>
  22.     <string name="api-setup-URL">
  23.       <![CDATA[http://api.piczo.com/api-1/setup]]>
  24.     </string>
  25.     <string name="api-login-URL">
  26.       <![CDATA[http://api.piczo.com/api-1/login]]>
  27.     </string>
  28.     <string name="api-lookup-URL">
  29.       <![CDATA[http://api.piczo.com/api-1/lookup]]>
  30.     </string>
  31.     <string name="api-logout-URL">
  32.       <![CDATA[http://api.piczo.com/api-1/logout]]>
  33.     </string>
  34.     <string name="api-friends-URL">
  35.       <![CDATA[http://api.piczo.com/api-1/friends]]>
  36.     </string>
  37.   </strings>
  38.  
  39.   <sessioncookies>
  40.     <cookie host=".piczo.com" name="up" path="/" />
  41.     <cookie host=".piczo.com" name="fs" path="/" />
  42.     <cookie host=".piczo.com" name="pvc" path="/" />
  43.     <cookie host=".piczo.com" name="JSESSIONID" path="/" />
  44.   </sessioncookies>
  45.  
  46.   <detect type="signup">
  47.     <url domain="piczo.com">
  48.       <path contains="go/signup" />
  49.     </url>
  50.     <form>
  51.       <field name="username" extract="value" />
  52.       <field name="password" extract="value" />
  53.     </form>
  54.   </detect>
  55.  
  56.   <detect type="login">
  57.     <conditions>
  58.       <url domain="piczo.com"/>
  59.       <form>
  60.         <xpath><![CDATA[[@name="loginform1"]]]></xpath>
  61.       </form>
  62.     </conditions>
  63.     <results>
  64.       <xpath name="username" extract="value">
  65.         <![CDATA[//div[@id="login"]//input[@name="username"]]]>
  66.       </xpath>
  67.       <xpath name="password" extract="value">
  68.         <![CDATA[//div[@id="login"]//input[@type="password"][@name="password"]]]>
  69.       </xpath>
  70.     </results>
  71.   </detect>
  72.  
  73.   <detect type="loggedin">
  74.     <xpath><![CDATA[//head/meta[@name="piczo-subject"]]]></xpath>
  75.     <xpath><![CDATA[//head/meta[@name="piczo-session"][@content="y"]]]></xpath>
  76.   </detect>
  77.  
  78.   <detect type="loggedout">
  79.     <xpath><![CDATA[//div[@id="top_nav"]//a[contains(@href,"piczo.com/go/signup")]]]></xpath>
  80.   </detect>
  81.  
  82.   <detect type="loggedout">
  83.     <url><path contains="go/login"/></url>
  84.     <xpath><![CDATA[//div[@id="login"]]]></xpath>
  85.   </detect>
  86.  
  87.   <detect type="loggedout">
  88.     <cookie nomatch="true" host=".piczo.com" name="up"/>
  89.     <cookie nomatch="true" host=".piczo.com" name="fs"/>
  90.     <cookie nomatch="true" host=".piczo.com" name="pvc"/>
  91.   </detect>
  92.  
  93.   <detect type="accountinfo">
  94.     <conditions>
  95.       <xpath><![CDATA[//head/meta[@name="piczo-subject"]]]></xpath>
  96.     </conditions>
  97.     <results>
  98.       <xpath name="piczo_guid" extract="attribute:content">
  99.         <![CDATA[//head/meta[@name="piczo-subject"]]]>
  100.       </xpath>
  101.       <regexp re1="username">
  102.         <![CDATA[/var previewURL = "http:\/\/pic.+\.piczo\.com\/(.+)\/\?preview/]]>
  103.       </regexp>
  104.       <xpath>
  105.         <![CDATA[//div[@id="myUrl"]/text()]]>
  106.         <regexp re1="profileURL">
  107.           <![CDATA[/(http....+\.piczo\.com)/]]>
  108.         </regexp>
  109.       </xpath>
  110.     </results>
  111.   </detect>
  112.  
  113.   <detect type="avatar">
  114.     <xpath name="avatarURL" extract="attribute:src">
  115.       <![CDATA[//img[@id="currentProfilePic"]]]>
  116.     </xpath>
  117.   </detect>
  118.  
  119.   <detect type="webedit">
  120.     <regexp re1="pageid">
  121.       <![CDATA[/var pageID = "([^"]*)"/]]>
  122.     </regexp>
  123.   </detect>
  124.  
  125.   <detect type="piczoedit">
  126.     <url><path contains="go/albumeditor"/></url>
  127.   </detect>
  128.  
  129.   <detect type="piczoedit">
  130.     <url><path contains="go/pageeditor"/></url>
  131.   </detect>
  132.  
  133.   <detect type="piczoImageID">
  134.     <regexp re1="imageID">
  135.       <![CDATA[/[^"]*\/i([0-9_]*)_([0-9_]*)_([0-9]*)\.[a-z]{2,4}/]]>
  136.     </regexp>
  137.   </detect>
  138.  
  139. </service>
  140.